/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pos.system;

import java.io.File;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.Calendar;
import java.util.Locale;

/**
 *
 * @author sham
 */
public class PosSystem {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws URISyntaxException {
//        Calendar calendar = Calendar.getInstance(Locale.ENGLISH);
//  
//        int y = calendar.get(Calendar.YEAR);
//              String m_s = calendar.getDisplayName(Calendar.MONTH, Calendar.LONG, Locale.ENGLISH);
//        int d = calendar.get(Calendar.DAY_OF_WEEK);
//        int h = calendar.get(Calendar.HOUR);
//        int min = calendar.get(Calendar.MINUTE);
//        int sec  = calendar.get(Calendar.SECOND);
//        String apm = calendar.getDisplayName(Calendar.AM_PM, Calendar.LONG, Locale.ENGLISH);
//        
//        System.out.println(m_s + " " + d + ", " + y + "  " + h + ":" + min+ ":" + sec + " " + apm);
//        NumberFormat invoiceFormatter = new DecimalFormat("###.00");
//        System.out.println(invoiceFormatter.format(123.0));
// PosSystem sys = new PosSystem();
// sys.test();
        System.out.println(new File(".").getAbsolutePath());
    }
    
    public void test() throws URISyntaxException{
               URL url = this.getClass().getResource("/resources/data.txt");
               System.out.println(url.toString());
        File parentDirectory = new File(new URI(url.toString()));
        System.out.println(parentDirectory.getAbsolutePath());
    }
}
